from ERP_system.utils.basemodels import BaseModel
from django.db import models
from django.contrib.auth.models import  AbstractUser


class UserModel(AbstractUser):

    phone=models.CharField('手机号',max_length=11,null=True,blank=True,unique=True)
    real_name=models.CharField('真实姓名',max_length=20,blank=True,null=True)

    class Meta:
        db_table='t_user'
        verbose_name='用户表'
        verbose_name_plural=verbose_name


    def __str__(self):
        return  self.username+':'+self.real_name


